package com.android.youwenchuang.presenter;

import com.android.youwenchuang.App;
import com.android.youwenchuang.base.IPresenter;
import com.android.youwenchuang.bean.News;
import com.android.youwenchuang.gen.NewsDao;

import java.util.List;

public class XueTangPresenter implements IPresenter {

    public List<News> getNewsList() {
        return App.mApp.getDaoSession().getNewsDao().queryBuilder().orderDesc(NewsDao.Properties.Date).list();
    }
}
